import { createRouter,createWebHashHistory } from 'vue-router'

import Login from '../views/Login'
import Home from '../views/Home'
import MyselfUsers from '../views/users/MyselfUsers'
import TeamUsers from '../views/users/TeamUsers'
import MyselfData from '../views/userdata/MyselfData'
import TeamData from '../views/userdata/TeamData'
import Power from '../views/power/power.vue'

export default createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            redirect:"/Login"
        },
        {
            path:"/Login",
            component:Login
        },
        {
            path:"/Home",
            component:Home,
            // redirect:"/MyselfUsers",
            children:[
                {
                    path:"/MyselfUsers",
                    component:MyselfUsers
                },
                {
                    path:"/TeamUsers",
                    component:TeamUsers
                },
                {
                    path:"/MyselfData",
                    component:MyselfData
                },
                {
                    path:"/TeamData",
                    component:TeamData
                },
                {
                    path:"/Power",
                    component:Power
                },
            ]
        }
    ]
})